/**
 *  iBizSys 5.0 机器人生产代码（不要直接修改当前代码）
 *  http://www.ibizsys.net
 */
package com.sa.ibiz.demo.srv.demo.entity;


import java.io.Serializable;
import java.util.HashMap;
import java.util.ArrayList;

import javax.persistence.Column;

import java.sql.Timestamp;
import net.ibizsys.paas.data.IDataObject;
import net.ibizsys.paas.data.DataObject;
import net.ibizsys.paas.util.StringHelper;
import net.sf.json.JSONObject;
import net.ibizsys.paas.util.JSONObjectHelper;
import net.ibizsys.paas.xml.XmlNode;
import net.ibizsys.paas.service.ServiceGlobal;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


/**
 * 实体[IBZ5ORDER] 数据对象
 */
public class IBZ5ORDER extends net.ibizsys.paas.entity.EntityBase implements Serializable {

    private static final long serialVersionUID = -1L;
    private static final Log log = LogFactory.getLog(IBZ5ORDER.class);
    /**
     *   实体属性标识[总金额]
     */
    public final static String FIELD_AMOUNT = "AMOUNT";
    /**
     *   实体属性标识[建立时间]
     */
    public final static String FIELD_CREATEDATE = "CREATEDATE";
    /**
     *   实体属性标识[建立人]
     */
    public final static String FIELD_CREATEMAN = "CREATEMAN";
    /**
     *   实体属性标识[明细数]
     */
    public final static String FIELD_DETAILNUM = "DETAILNUM";
    /**
     *   实体属性标识[客户标识]
     */
    public final static String FIELD_IBZ5CUSTOMERID = "IBZ5CUSTOMERID";
    /**
     *   实体属性标识[客户名称]
     */
    public final static String FIELD_IBZ5CUSTOMERNAME = "IBZ5CUSTOMERNAME";
    /**
     *   实体属性标识[订单标识]
     */
    public final static String FIELD_IBZ5ORDERID = "IBZ5ORDERID";
    /**
     *   实体属性标识[订单名称]
     */
    public final static String FIELD_IBZ5ORDERNAME = "IBZ5ORDERNAME";
    /**
     *   实体属性标识[备注]
     */
    public final static String FIELD_MEMO = "MEMO";
    /**
     *   实体属性标识[审批意见]
     */
    public final static String FIELD_OPINION = "OPINION";
    /**
     *   实体属性标识[订单状态]
     */
    public final static String FIELD_ORDERSTATE = "ORDERSTATE";
    /**
     *   实体属性标识[订单时间]
     */
    public final static String FIELD_ORDERTIME = "ORDERTIME";
    /**
     *   实体属性标识[订单类型]
     */
    public final static String FIELD_ORDERTYPE = "ORDERTYPE";
    /**
     *   实体属性标识[订单编号]
     */
    public final static String FIELD_ORDERUID = "ORDERUID";
    /**
     *   实体属性标识[更新时间]
     */
    public final static String FIELD_UPDATEDATE = "UPDATEDATE";
    /**
     *   实体属性标识[更新人]
     */
    public final static String FIELD_UPDATEMAN = "UPDATEMAN";

    private final static int INDEX_AMOUNT = 0;
    private final static int INDEX_CREATEDATE = 1;
    private final static int INDEX_CREATEMAN = 2;
    private final static int INDEX_DETAILNUM = 3;
    private final static int INDEX_IBZ5CUSTOMERID = 4;
    private final static int INDEX_IBZ5CUSTOMERNAME = 5;
    private final static int INDEX_IBZ5ORDERID = 6;
    private final static int INDEX_IBZ5ORDERNAME = 7;
    private final static int INDEX_MEMO = 8;
    private final static int INDEX_OPINION = 9;
    private final static int INDEX_ORDERSTATE = 10;
    private final static int INDEX_ORDERTIME = 11;
    private final static int INDEX_ORDERTYPE = 12;
    private final static int INDEX_ORDERUID = 13;
    private final static int INDEX_UPDATEDATE = 14;
    private final static int INDEX_UPDATEMAN = 15;

    private final static HashMap<String, Integer> fieldIndexMap = new HashMap<String, Integer>();
    static {
        fieldIndexMap.put( FIELD_AMOUNT, INDEX_AMOUNT);
        fieldIndexMap.put( FIELD_CREATEDATE, INDEX_CREATEDATE);
        fieldIndexMap.put( FIELD_CREATEMAN, INDEX_CREATEMAN);
        fieldIndexMap.put( FIELD_DETAILNUM, INDEX_DETAILNUM);
        fieldIndexMap.put( FIELD_IBZ5CUSTOMERID, INDEX_IBZ5CUSTOMERID);
        fieldIndexMap.put( FIELD_IBZ5CUSTOMERNAME, INDEX_IBZ5CUSTOMERNAME);
        fieldIndexMap.put( FIELD_IBZ5ORDERID, INDEX_IBZ5ORDERID);
        fieldIndexMap.put( FIELD_IBZ5ORDERNAME, INDEX_IBZ5ORDERNAME);
        fieldIndexMap.put( FIELD_MEMO, INDEX_MEMO);
        fieldIndexMap.put( FIELD_OPINION, INDEX_OPINION);
        fieldIndexMap.put( FIELD_ORDERSTATE, INDEX_ORDERSTATE);
        fieldIndexMap.put( FIELD_ORDERTIME, INDEX_ORDERTIME);
        fieldIndexMap.put( FIELD_ORDERTYPE, INDEX_ORDERTYPE);
        fieldIndexMap.put( FIELD_ORDERUID, INDEX_ORDERUID);
        fieldIndexMap.put( FIELD_UPDATEDATE, INDEX_UPDATEDATE);
        fieldIndexMap.put( FIELD_UPDATEMAN, INDEX_UPDATEMAN);
    }

    private IBZ5ORDER proxyIBZ5ORDER = null;

    public IBZ5ORDER() {
        super();
    }
    private boolean amountDirtyFlag = false;
    private boolean createdateDirtyFlag = false;
    private boolean createmanDirtyFlag = false;
    private boolean detailnumDirtyFlag = false;
    private boolean ibz5customeridDirtyFlag = false;
    private boolean ibz5customernameDirtyFlag = false;
    private boolean ibz5orderidDirtyFlag = false;
    private boolean ibz5ordernameDirtyFlag = false;
    private boolean memoDirtyFlag = false;
    private boolean opinionDirtyFlag = false;
    private boolean orderstateDirtyFlag = false;
    private boolean ordertimeDirtyFlag = false;
    private boolean ordertypeDirtyFlag = false;
    private boolean orderuidDirtyFlag = false;
    private boolean updatedateDirtyFlag = false;
    private boolean updatemanDirtyFlag = false;

    @Column(name="amount")
    private Double amount;
    @Column(name="createdate")
    private Timestamp createdate;
    @Column(name="createman")
    private String createman;
    @Column(name="detailnum")
    private Integer detailnum;
    @Column(name="ibz5customerid")
    private String ibz5customerid;
    @Column(name="ibz5customername")
    private String ibz5customername;
    @Column(name="ibz5orderid")
    private String ibz5orderid;
    @Column(name="ibz5ordername")
    private String ibz5ordername;
    @Column(name="memo")
    private String memo;
    @Column(name="opinion")
    private String opinion;
    @Column(name="orderstate")
    private String orderstate;
    @Column(name="ordertime")
    private Timestamp ordertime;
    @Column(name="ordertype")
    private String ordertype;
    @Column(name="orderuid")
    private String orderuid;
    @Column(name="updatedate")
    private Timestamp updatedate;
    @Column(name="updateman")
    private String updateman;


    /**
     *  设置属性值[总金额]
     *  @param amount
     */
    public void setAMOUNT(Double amount) {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().setAMOUNT(amount);
            return;
        }
        this.amount =  amount;
        this.amountDirtyFlag  = true;
    }

    /**
     *  获取属性值[总金额]
     */
    public Double getAMOUNT() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getAMOUNT();
        }
        return this.amount;
    }

    /**
     *  获取属性值[总金额]是否修改
     */
    public boolean isAMOUNTDirty() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isAMOUNTDirty();
        }
        return this.amountDirtyFlag;
    }

    /**
     *  重置属性值[总金额]
     */
    public void resetAMOUNT() {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().resetAMOUNT();
            return;
        }

        this.amountDirtyFlag = false;
        this.amount = null;
    }
    /**
     *  设置属性值[建立时间]
     *  @param createdate
     */
    public void setCreateDate(Timestamp createdate) {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().setCreateDate(createdate);
            return;
        }
        this.createdate =  createdate;
        this.createdateDirtyFlag  = true;
    }

    /**
     *  获取属性值[建立时间]
     */
    public Timestamp getCreateDate() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getCreateDate();
        }
        return this.createdate;
    }

    /**
     *  获取属性值[建立时间]是否修改
     */
    public boolean isCreateDateDirty() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isCreateDateDirty();
        }
        return this.createdateDirtyFlag;
    }

    /**
     *  重置属性值[建立时间]
     */
    public void resetCreateDate() {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().resetCreateDate();
            return;
        }

        this.createdateDirtyFlag = false;
        this.createdate = null;
    }
    /**
     *  设置属性值[建立人]代码表：com.sa.ibiz.demo.srv.codelist.SysOperatorCodeListModel
     *  @param createman
     */
    public void setCreateMan(String createman) {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().setCreateMan(createman);
            return;
        }
        if(createman!=null) {
            createman = StringHelper.trimRight(createman);
            if(createman.length()==0) {
                createman = null;
            }
        }
        this.createman =  createman;
        this.createmanDirtyFlag  = true;
    }

    /**
     *  获取属性值[建立人]代码表：com.sa.ibiz.demo.srv.codelist.SysOperatorCodeListModel
     */
    public String getCreateMan() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getCreateMan();
        }
        return this.createman;
    }

    /**
     *  获取属性值[建立人]是否修改
     */
    public boolean isCreateManDirty() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isCreateManDirty();
        }
        return this.createmanDirtyFlag;
    }

    /**
     *  重置属性值[建立人]
     */
    public void resetCreateMan() {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().resetCreateMan();
            return;
        }

        this.createmanDirtyFlag = false;
        this.createman = null;
    }
    /**
     *  设置属性值[明细数]
     *  @param detailnum
     */
    public void setDETAILNUM(Integer detailnum) {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().setDETAILNUM(detailnum);
            return;
        }
        this.detailnum =  detailnum;
        this.detailnumDirtyFlag  = true;
    }

    /**
     *  获取属性值[明细数]
     */
    public Integer getDETAILNUM() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getDETAILNUM();
        }
        return this.detailnum;
    }

    /**
     *  获取属性值[明细数]是否修改
     */
    public boolean isDETAILNUMDirty() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isDETAILNUMDirty();
        }
        return this.detailnumDirtyFlag;
    }

    /**
     *  重置属性值[明细数]
     */
    public void resetDETAILNUM() {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().resetDETAILNUM();
            return;
        }

        this.detailnumDirtyFlag = false;
        this.detailnum = null;
    }
    /**
     *  设置属性值[客户标识]
     *  @param ibz5customerid
     */
    public void setIBZ5CUSTOMERId(String ibz5customerid) {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().setIBZ5CUSTOMERId(ibz5customerid);
            return;
        }
        if(ibz5customerid!=null) {
            ibz5customerid = StringHelper.trimRight(ibz5customerid);
            if(ibz5customerid.length()==0) {
                ibz5customerid = null;
            }
        }
        this.ibz5customerid =  ibz5customerid;
        this.ibz5customeridDirtyFlag  = true;
    }

    /**
     *  获取属性值[客户标识]
     */
    public String getIBZ5CUSTOMERId() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getIBZ5CUSTOMERId();
        }
        return this.ibz5customerid;
    }

    /**
     *  获取属性值[客户标识]是否修改
     */
    public boolean isIBZ5CUSTOMERIdDirty() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isIBZ5CUSTOMERIdDirty();
        }
        return this.ibz5customeridDirtyFlag;
    }

    /**
     *  重置属性值[客户标识]
     */
    public void resetIBZ5CUSTOMERId() {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().resetIBZ5CUSTOMERId();
            return;
        }

        this.ibz5customeridDirtyFlag = false;
        this.ibz5customerid = null;
    }
    /**
     *  设置属性值[客户名称]
     *  @param ibz5customername
     */
    public void setIBZ5CUSTOMERName(String ibz5customername) {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().setIBZ5CUSTOMERName(ibz5customername);
            return;
        }
        if(ibz5customername!=null) {
            ibz5customername = StringHelper.trimRight(ibz5customername);
            if(ibz5customername.length()==0) {
                ibz5customername = null;
            }
        }
        this.ibz5customername =  ibz5customername;
        this.ibz5customernameDirtyFlag  = true;
    }

    /**
     *  获取属性值[客户名称]
     */
    public String getIBZ5CUSTOMERName() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getIBZ5CUSTOMERName();
        }
        return this.ibz5customername;
    }

    /**
     *  获取属性值[客户名称]是否修改
     */
    public boolean isIBZ5CUSTOMERNameDirty() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isIBZ5CUSTOMERNameDirty();
        }
        return this.ibz5customernameDirtyFlag;
    }

    /**
     *  重置属性值[客户名称]
     */
    public void resetIBZ5CUSTOMERName() {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().resetIBZ5CUSTOMERName();
            return;
        }

        this.ibz5customernameDirtyFlag = false;
        this.ibz5customername = null;
    }
    /**
     *  设置属性值[订单标识]
     *  @param ibz5orderid
     */
    public void setIBZ5ORDERId(String ibz5orderid) {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().setIBZ5ORDERId(ibz5orderid);
            return;
        }
        if(ibz5orderid!=null) {
            ibz5orderid = StringHelper.trimRight(ibz5orderid);
            if(ibz5orderid.length()==0) {
                ibz5orderid = null;
            }
        }
        this.ibz5orderid =  ibz5orderid;
        this.ibz5orderidDirtyFlag  = true;
    }

    /**
     *  获取属性值[订单标识]
     */
    public String getIBZ5ORDERId() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getIBZ5ORDERId();
        }
        return this.ibz5orderid;
    }

    /**
     *  获取属性值[订单标识]是否修改
     */
    public boolean isIBZ5ORDERIdDirty() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isIBZ5ORDERIdDirty();
        }
        return this.ibz5orderidDirtyFlag;
    }

    /**
     *  重置属性值[订单标识]
     */
    public void resetIBZ5ORDERId() {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().resetIBZ5ORDERId();
            return;
        }

        this.ibz5orderidDirtyFlag = false;
        this.ibz5orderid = null;
    }
    /**
     *  设置属性值[订单名称]
     *  @param ibz5ordername
     */
    public void setIBZ5ORDERName(String ibz5ordername) {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().setIBZ5ORDERName(ibz5ordername);
            return;
        }
        if(ibz5ordername!=null) {
            ibz5ordername = StringHelper.trimRight(ibz5ordername);
            if(ibz5ordername.length()==0) {
                ibz5ordername = null;
            }
        }
        this.ibz5ordername =  ibz5ordername;
        this.ibz5ordernameDirtyFlag  = true;
    }

    /**
     *  获取属性值[订单名称]
     */
    public String getIBZ5ORDERName() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getIBZ5ORDERName();
        }
        return this.ibz5ordername;
    }

    /**
     *  获取属性值[订单名称]是否修改
     */
    public boolean isIBZ5ORDERNameDirty() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isIBZ5ORDERNameDirty();
        }
        return this.ibz5ordernameDirtyFlag;
    }

    /**
     *  重置属性值[订单名称]
     */
    public void resetIBZ5ORDERName() {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().resetIBZ5ORDERName();
            return;
        }

        this.ibz5ordernameDirtyFlag = false;
        this.ibz5ordername = null;
    }
    /**
     *  设置属性值[备注]
     *  @param memo
     */
    public void setMEMO(String memo) {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().setMEMO(memo);
            return;
        }
        if(memo!=null) {
            memo = StringHelper.trimRight(memo);
            if(memo.length()==0) {
                memo = null;
            }
        }
        this.memo =  memo;
        this.memoDirtyFlag  = true;
    }

    /**
     *  获取属性值[备注]
     */
    public String getMEMO() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getMEMO();
        }
        return this.memo;
    }

    /**
     *  获取属性值[备注]是否修改
     */
    public boolean isMEMODirty() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isMEMODirty();
        }
        return this.memoDirtyFlag;
    }

    /**
     *  重置属性值[备注]
     */
    public void resetMEMO() {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().resetMEMO();
            return;
        }

        this.memoDirtyFlag = false;
        this.memo = null;
    }
    /**
     *  设置属性值[审批意见]
     *  @param opinion
     */
    public void setOPINION(String opinion) {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().setOPINION(opinion);
            return;
        }
        if(opinion!=null) {
            opinion = StringHelper.trimRight(opinion);
            if(opinion.length()==0) {
                opinion = null;
            }
        }
        this.opinion =  opinion;
        this.opinionDirtyFlag  = true;
    }

    /**
     *  获取属性值[审批意见]
     */
    public String getOPINION() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getOPINION();
        }
        return this.opinion;
    }

    /**
     *  获取属性值[审批意见]是否修改
     */
    public boolean isOPINIONDirty() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isOPINIONDirty();
        }
        return this.opinionDirtyFlag;
    }

    /**
     *  重置属性值[审批意见]
     */
    public void resetOPINION() {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().resetOPINION();
            return;
        }

        this.opinionDirtyFlag = false;
        this.opinion = null;
    }
    /**
     *  设置属性值[订单状态]代码表：com.sa.ibiz.demo.srv.codelist.ORDERSTATECodeListModel
     *  @param orderstate
     */
    public void setORDERSTATE(String orderstate) {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().setORDERSTATE(orderstate);
            return;
        }
        if(orderstate!=null) {
            orderstate = StringHelper.trimRight(orderstate);
            if(orderstate.length()==0) {
                orderstate = null;
            }
        }
        this.orderstate =  orderstate;
        this.orderstateDirtyFlag  = true;
    }

    /**
     *  获取属性值[订单状态]代码表：com.sa.ibiz.demo.srv.codelist.ORDERSTATECodeListModel
     */
    public String getORDERSTATE() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getORDERSTATE();
        }
        return this.orderstate;
    }

    /**
     *  获取属性值[订单状态]是否修改
     */
    public boolean isORDERSTATEDirty() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isORDERSTATEDirty();
        }
        return this.orderstateDirtyFlag;
    }

    /**
     *  重置属性值[订单状态]
     */
    public void resetORDERSTATE() {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().resetORDERSTATE();
            return;
        }

        this.orderstateDirtyFlag = false;
        this.orderstate = null;
    }
    /**
     *  设置属性值[订单时间]
     *  @param ordertime
     */
    public void setORDERTIME(Timestamp ordertime) {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().setORDERTIME(ordertime);
            return;
        }
        this.ordertime =  ordertime;
        this.ordertimeDirtyFlag  = true;
    }

    /**
     *  获取属性值[订单时间]
     */
    public Timestamp getORDERTIME() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getORDERTIME();
        }
        return this.ordertime;
    }

    /**
     *  获取属性值[订单时间]是否修改
     */
    public boolean isORDERTIMEDirty() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isORDERTIMEDirty();
        }
        return this.ordertimeDirtyFlag;
    }

    /**
     *  重置属性值[订单时间]
     */
    public void resetORDERTIME() {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().resetORDERTIME();
            return;
        }

        this.ordertimeDirtyFlag = false;
        this.ordertime = null;
    }
    /**
     *  设置属性值[订单类型]代码表：com.sa.ibiz.demo.srv.codelist.ORDERTYPECodeListModel
     *  @param ordertype
     */
    public void setORDERTYPE(String ordertype) {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().setORDERTYPE(ordertype);
            return;
        }
        if(ordertype!=null) {
            ordertype = StringHelper.trimRight(ordertype);
            if(ordertype.length()==0) {
                ordertype = null;
            }
        }
        this.ordertype =  ordertype;
        this.ordertypeDirtyFlag  = true;
    }

    /**
     *  获取属性值[订单类型]代码表：com.sa.ibiz.demo.srv.codelist.ORDERTYPECodeListModel
     */
    public String getORDERTYPE() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getORDERTYPE();
        }
        return this.ordertype;
    }

    /**
     *  获取属性值[订单类型]是否修改
     */
    public boolean isORDERTYPEDirty() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isORDERTYPEDirty();
        }
        return this.ordertypeDirtyFlag;
    }

    /**
     *  重置属性值[订单类型]
     */
    public void resetORDERTYPE() {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().resetORDERTYPE();
            return;
        }

        this.ordertypeDirtyFlag = false;
        this.ordertype = null;
    }
    /**
     *  设置属性值[订单编号]
     *  @param orderuid
     */
    public void setORDERUID(String orderuid) {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().setORDERUID(orderuid);
            return;
        }
        if(orderuid!=null) {
            orderuid = StringHelper.trimRight(orderuid);
            if(orderuid.length()==0) {
                orderuid = null;
            }
        }
        this.orderuid =  orderuid;
        this.orderuidDirtyFlag  = true;
    }

    /**
     *  获取属性值[订单编号]
     */
    public String getORDERUID() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getORDERUID();
        }
        return this.orderuid;
    }

    /**
     *  获取属性值[订单编号]是否修改
     */
    public boolean isORDERUIDDirty() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isORDERUIDDirty();
        }
        return this.orderuidDirtyFlag;
    }

    /**
     *  重置属性值[订单编号]
     */
    public void resetORDERUID() {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().resetORDERUID();
            return;
        }

        this.orderuidDirtyFlag = false;
        this.orderuid = null;
    }
    /**
     *  设置属性值[更新时间]
     *  @param updatedate
     */
    public void setUpdateDate(Timestamp updatedate) {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().setUpdateDate(updatedate);
            return;
        }
        this.updatedate =  updatedate;
        this.updatedateDirtyFlag  = true;
    }

    /**
     *  获取属性值[更新时间]
     */
    public Timestamp getUpdateDate() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getUpdateDate();
        }
        return this.updatedate;
    }

    /**
     *  获取属性值[更新时间]是否修改
     */
    public boolean isUpdateDateDirty() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isUpdateDateDirty();
        }
        return this.updatedateDirtyFlag;
    }

    /**
     *  重置属性值[更新时间]
     */
    public void resetUpdateDate() {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().resetUpdateDate();
            return;
        }

        this.updatedateDirtyFlag = false;
        this.updatedate = null;
    }
    /**
     *  设置属性值[更新人]代码表：com.sa.ibiz.demo.srv.codelist.SysOperatorCodeListModel
     *  @param updateman
     */
    public void setUpdateMan(String updateman) {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().setUpdateMan(updateman);
            return;
        }
        if(updateman!=null) {
            updateman = StringHelper.trimRight(updateman);
            if(updateman.length()==0) {
                updateman = null;
            }
        }
        this.updateman =  updateman;
        this.updatemanDirtyFlag  = true;
    }

    /**
     *  获取属性值[更新人]代码表：com.sa.ibiz.demo.srv.codelist.SysOperatorCodeListModel
     */
    public String getUpdateMan() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getUpdateMan();
        }
        return this.updateman;
    }

    /**
     *  获取属性值[更新人]是否修改
     */
    public boolean isUpdateManDirty() {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isUpdateManDirty();
        }
        return this.updatemanDirtyFlag;
    }

    /**
     *  重置属性值[更新人]
     */
    public void resetUpdateMan() {

        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().resetUpdateMan();
            return;
        }

        this.updatemanDirtyFlag = false;
        this.updateman = null;
    }

    /* (non-Javadoc)
     * @see net.ibizsys.paas.entity.EntityBase#onReset()
     */
    @Override
    protected void onReset() {
        IBZ5ORDER.resetAll(this);
        super.onReset();
    }

    /**
     * 重置当前数据对象属性值
     * @param entity
     */
    private static void resetAll(IBZ5ORDER et) {
        et.resetAMOUNT();
        et.resetCreateDate();
        et.resetCreateMan();
        et.resetDETAILNUM();
        et.resetIBZ5CUSTOMERId();
        et.resetIBZ5CUSTOMERName();
        et.resetIBZ5ORDERId();
        et.resetIBZ5ORDERName();
        et.resetMEMO();
        et.resetOPINION();
        et.resetORDERSTATE();
        et.resetORDERTIME();
        et.resetORDERTYPE();
        et.resetORDERUID();
        et.resetUpdateDate();
        et.resetUpdateMan();
    }

    /* (non-Javadoc)
     * @see net.ibizsys.paas.entity.EntityBase#onFillMap(java.util.HashMap, boolean)
     */
    @Override
    protected void onFillMap(HashMap<String, Object> params, boolean bDirtyOnly) {
        if(!bDirtyOnly || isAMOUNTDirty()) {
            params.put(FIELD_AMOUNT,getAMOUNT());
        }
        if(!bDirtyOnly || isCreateDateDirty()) {
            params.put(FIELD_CREATEDATE,getCreateDate());
        }
        if(!bDirtyOnly || isCreateManDirty()) {
            params.put(FIELD_CREATEMAN,getCreateMan());
        }
        if(!bDirtyOnly || isDETAILNUMDirty()) {
            params.put(FIELD_DETAILNUM,getDETAILNUM());
        }
        if(!bDirtyOnly || isIBZ5CUSTOMERIdDirty()) {
            params.put(FIELD_IBZ5CUSTOMERID,getIBZ5CUSTOMERId());
        }
        if(!bDirtyOnly || isIBZ5CUSTOMERNameDirty()) {
            params.put(FIELD_IBZ5CUSTOMERNAME,getIBZ5CUSTOMERName());
        }
        if(!bDirtyOnly || isIBZ5ORDERIdDirty()) {
            params.put(FIELD_IBZ5ORDERID,getIBZ5ORDERId());
        }
        if(!bDirtyOnly || isIBZ5ORDERNameDirty()) {
            params.put(FIELD_IBZ5ORDERNAME,getIBZ5ORDERName());
        }
        if(!bDirtyOnly || isMEMODirty()) {
            params.put(FIELD_MEMO,getMEMO());
        }
        if(!bDirtyOnly || isOPINIONDirty()) {
            params.put(FIELD_OPINION,getOPINION());
        }
        if(!bDirtyOnly || isORDERSTATEDirty()) {
            params.put(FIELD_ORDERSTATE,getORDERSTATE());
        }
        if(!bDirtyOnly || isORDERTIMEDirty()) {
            params.put(FIELD_ORDERTIME,getORDERTIME());
        }
        if(!bDirtyOnly || isORDERTYPEDirty()) {
            params.put(FIELD_ORDERTYPE,getORDERTYPE());
        }
        if(!bDirtyOnly || isORDERUIDDirty()) {
            params.put(FIELD_ORDERUID,getORDERUID());
        }
        if(!bDirtyOnly || isUpdateDateDirty()) {
            params.put(FIELD_UPDATEDATE,getUpdateDate());
        }
        if(!bDirtyOnly || isUpdateManDirty()) {
            params.put(FIELD_UPDATEMAN,getUpdateMan());
        }
        super.onFillMap(params, bDirtyOnly);
    }

    /* (non-Javadoc)
     * @see net.ibizsys.paas.data.DataObject#get(java.lang.String)
     */
    @Override
    public Object get(String strParamName) throws Exception {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().get(strParamName);
        }

        if(StringHelper.isNullOrEmpty(strParamName))
            throw new Exception("没有指定属性");
        Integer index=fieldIndexMap.get(strParamName.toUpperCase());
        if(index==null)
            return super.get(strParamName);

        return  IBZ5ORDER.get(this, index);
    }

    /**
     * 通过属性标识获取属性值
     * @param et 数据对象
     * @param index 属性标识
     * @return
     * @throws Exception
     */
    private static Object get(IBZ5ORDER et,int index) throws Exception {

        switch(index) {
        case INDEX_AMOUNT:
            return et.getAMOUNT();
        case INDEX_CREATEDATE:
            return et.getCreateDate();
        case INDEX_CREATEMAN:
            return et.getCreateMan();
        case INDEX_DETAILNUM:
            return et.getDETAILNUM();
        case INDEX_IBZ5CUSTOMERID:
            return et.getIBZ5CUSTOMERId();
        case INDEX_IBZ5CUSTOMERNAME:
            return et.getIBZ5CUSTOMERName();
        case INDEX_IBZ5ORDERID:
            return et.getIBZ5ORDERId();
        case INDEX_IBZ5ORDERNAME:
            return et.getIBZ5ORDERName();
        case INDEX_MEMO:
            return et.getMEMO();
        case INDEX_OPINION:
            return et.getOPINION();
        case INDEX_ORDERSTATE:
            return et.getORDERSTATE();
        case INDEX_ORDERTIME:
            return et.getORDERTIME();
        case INDEX_ORDERTYPE:
            return et.getORDERTYPE();
        case INDEX_ORDERUID:
            return et.getORDERUID();
        case INDEX_UPDATEDATE:
            return et.getUpdateDate();
        case INDEX_UPDATEMAN:
            return et.getUpdateMan();
        default:
            throw new Exception("不明属性标识");
        }
    }

    /* (non-Javadoc)
     * @see net.ibizsys.paas.data.DataObject#set(java.lang.String, java.lang.Object)
     */
    @Override
    public void set(String strParamName,Object objValue) throws Exception {
        if(this.getProxyEntity()!=null) {
            this.getProxyEntity().set(strParamName,objValue);
            return;
        }
        if(StringHelper.isNullOrEmpty(strParamName))
            throw new Exception("没有指定属性");

        Integer index=fieldIndexMap.get(strParamName.toUpperCase());
        if(index==null) {
            super.set(strParamName,objValue);
            return;
        }

        IBZ5ORDER.set(this,index,objValue);
    }

    /**
     * 通过属性标识设定属性值
     * @param et 数据对象
     * @param index 属性标识
     * @param obj 值
     * @throws Exception
     */
    private static void set(IBZ5ORDER et,int index,Object obj) throws Exception {
        switch(index) {
        case INDEX_AMOUNT:
            et.setAMOUNT(DataObject.getDoubleValue(obj));
            return ;
        case INDEX_CREATEDATE:
            et.setCreateDate(DataObject.getTimestampValue(obj));
            return ;
        case INDEX_CREATEMAN:
            et.setCreateMan(DataObject.getStringValue(obj));
            return ;
        case INDEX_DETAILNUM:
            et.setDETAILNUM(DataObject.getIntegerValue(obj));
            return ;
        case INDEX_IBZ5CUSTOMERID:
            et.setIBZ5CUSTOMERId(DataObject.getStringValue(obj));
            return ;
        case INDEX_IBZ5CUSTOMERNAME:
            et.setIBZ5CUSTOMERName(DataObject.getStringValue(obj));
            return ;
        case INDEX_IBZ5ORDERID:
            et.setIBZ5ORDERId(DataObject.getStringValue(obj));
            return ;
        case INDEX_IBZ5ORDERNAME:
            et.setIBZ5ORDERName(DataObject.getStringValue(obj));
            return ;
        case INDEX_MEMO:
            et.setMEMO(DataObject.getStringValue(obj));
            return ;
        case INDEX_OPINION:
            et.setOPINION(DataObject.getStringValue(obj));
            return ;
        case INDEX_ORDERSTATE:
            et.setORDERSTATE(DataObject.getStringValue(obj));
            return ;
        case INDEX_ORDERTIME:
            et.setORDERTIME(DataObject.getTimestampValue(obj));
            return ;
        case INDEX_ORDERTYPE:
            et.setORDERTYPE(DataObject.getStringValue(obj));
            return ;
        case INDEX_ORDERUID:
            et.setORDERUID(DataObject.getStringValue(obj));
            return ;
        case INDEX_UPDATEDATE:
            et.setUpdateDate(DataObject.getTimestampValue(obj));
            return ;
        case INDEX_UPDATEMAN:
            et.setUpdateMan(DataObject.getStringValue(obj));
            return ;
        default:
            throw new Exception("不明属性标识");
        }
    }

    /* (non-Javadoc)
     * @see net.ibizsys.paas.data.DataObject#isNull(java.lang.String)
     */
    @Override
    public boolean isNull(String strParamName) throws Exception {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().isNull(strParamName);
        }
        if(StringHelper.isNullOrEmpty(strParamName))
            throw new Exception("没有指定属性");

        Integer index=fieldIndexMap.get(strParamName.toUpperCase());
        if(index==null)
            return super.isNull(strParamName);

        return  IBZ5ORDER.isNull(this, index);
    }

    /**
     * 判断指定属性值是否为空值
     * @param et
     * @param index
     * @return
     * @throws Exception
     */
    private static boolean isNull(IBZ5ORDER et,int index) throws Exception {

        switch(index) {
        case INDEX_AMOUNT:
            return et.getAMOUNT()==null;
        case INDEX_CREATEDATE:
            return et.getCreateDate()==null;
        case INDEX_CREATEMAN:
            return et.getCreateMan()==null;
        case INDEX_DETAILNUM:
            return et.getDETAILNUM()==null;
        case INDEX_IBZ5CUSTOMERID:
            return et.getIBZ5CUSTOMERId()==null;
        case INDEX_IBZ5CUSTOMERNAME:
            return et.getIBZ5CUSTOMERName()==null;
        case INDEX_IBZ5ORDERID:
            return et.getIBZ5ORDERId()==null;
        case INDEX_IBZ5ORDERNAME:
            return et.getIBZ5ORDERName()==null;
        case INDEX_MEMO:
            return et.getMEMO()==null;
        case INDEX_OPINION:
            return et.getOPINION()==null;
        case INDEX_ORDERSTATE:
            return et.getORDERSTATE()==null;
        case INDEX_ORDERTIME:
            return et.getORDERTIME()==null;
        case INDEX_ORDERTYPE:
            return et.getORDERTYPE()==null;
        case INDEX_ORDERUID:
            return et.getORDERUID()==null;
        case INDEX_UPDATEDATE:
            return et.getUpdateDate()==null;
        case INDEX_UPDATEMAN:
            return et.getUpdateMan()==null;
        default:
            throw new Exception("不明属性标识");
        }
    }


    /* (non-Javadoc)
     * @see net.ibizsys.paas.data.DataObject#contains(java.lang.String)
     */
    @Override
    public boolean contains(String strParamName) throws Exception {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().contains(strParamName);
        }

        if(StringHelper.isNullOrEmpty(strParamName))
            throw new Exception("没有指定属性");
        Integer index=fieldIndexMap.get(strParamName.toUpperCase());
        if(index==null)
            return super.contains(strParamName);

        return  IBZ5ORDER.contains(this, index);
    }

    /**
     * 获取判断对象是否存在指定属性值
     * @param et
     * @param index
     * @return
     * @throws Exception
     */
    private static boolean contains(IBZ5ORDER et,int index) throws Exception {

        switch(index) {
        case INDEX_AMOUNT:
            return et.isAMOUNTDirty();
        case INDEX_CREATEDATE:
            return et.isCreateDateDirty();
        case INDEX_CREATEMAN:
            return et.isCreateManDirty();
        case INDEX_DETAILNUM:
            return et.isDETAILNUMDirty();
        case INDEX_IBZ5CUSTOMERID:
            return et.isIBZ5CUSTOMERIdDirty();
        case INDEX_IBZ5CUSTOMERNAME:
            return et.isIBZ5CUSTOMERNameDirty();
        case INDEX_IBZ5ORDERID:
            return et.isIBZ5ORDERIdDirty();
        case INDEX_IBZ5ORDERNAME:
            return et.isIBZ5ORDERNameDirty();
        case INDEX_MEMO:
            return et.isMEMODirty();
        case INDEX_OPINION:
            return et.isOPINIONDirty();
        case INDEX_ORDERSTATE:
            return et.isORDERSTATEDirty();
        case INDEX_ORDERTIME:
            return et.isORDERTIMEDirty();
        case INDEX_ORDERTYPE:
            return et.isORDERTYPEDirty();
        case INDEX_ORDERUID:
            return et.isORDERUIDDirty();
        case INDEX_UPDATEDATE:
            return et.isUpdateDateDirty();
        case INDEX_UPDATEMAN:
            return et.isUpdateManDirty();
        default:
            throw new Exception("不明属性标识");
        }
    }

    /* (non-Javadoc)
     * @see net.ibizsys.paas.data.DataObject#onFillJSONObject(net.sf.json.JSONObject, boolean)
     */
    @Override
    protected void onFillJSONObject(JSONObject objJSON, boolean bIncludeEmpty) throws Exception {
        fillJSONObject(this,objJSON,bIncludeEmpty);
        super.onFillJSONObject(objJSON, bIncludeEmpty);
    }

    /**
     * 填充当前对象到JSON
     * @param et 当前数据对象
     * @param json JSON对象
     * @param bIncEmpty 是否包括空值
     * @throws Exception
     */
    private static  void fillJSONObject(IBZ5ORDER et,JSONObject json, boolean bIncEmpty) throws Exception {
        if(bIncEmpty||et.getAMOUNT()!=null) {
            JSONObjectHelper.put(json,"amount",getJSONValue(et.getAMOUNT()),false);
        }
        if(bIncEmpty||et.getCreateDate()!=null) {
            JSONObjectHelper.put(json,"createdate",getJSONValue(et.getCreateDate()),false);
        }
        if(bIncEmpty||et.getCreateMan()!=null) {
            JSONObjectHelper.put(json,"createman",getJSONValue(et.getCreateMan()),false);
        }
        if(bIncEmpty||et.getDETAILNUM()!=null) {
            JSONObjectHelper.put(json,"detailnum",getJSONValue(et.getDETAILNUM()),false);
        }
        if(bIncEmpty||et.getIBZ5CUSTOMERId()!=null) {
            JSONObjectHelper.put(json,"ibz5customerid",getJSONValue(et.getIBZ5CUSTOMERId()),false);
        }
        if(bIncEmpty||et.getIBZ5CUSTOMERName()!=null) {
            JSONObjectHelper.put(json,"ibz5customername",getJSONValue(et.getIBZ5CUSTOMERName()),false);
        }
        if(bIncEmpty||et.getIBZ5ORDERId()!=null) {
            JSONObjectHelper.put(json,"ibz5orderid",getJSONValue(et.getIBZ5ORDERId()),false);
        }
        if(bIncEmpty||et.getIBZ5ORDERName()!=null) {
            JSONObjectHelper.put(json,"ibz5ordername",getJSONValue(et.getIBZ5ORDERName()),false);
        }
        if(bIncEmpty||et.getMEMO()!=null) {
            JSONObjectHelper.put(json,"memo",getJSONValue(et.getMEMO()),false);
        }
        if(bIncEmpty||et.getOPINION()!=null) {
            JSONObjectHelper.put(json,"opinion",getJSONValue(et.getOPINION()),false);
        }
        if(bIncEmpty||et.getORDERSTATE()!=null) {
            JSONObjectHelper.put(json,"orderstate",getJSONValue(et.getORDERSTATE()),false);
        }
        if(bIncEmpty||et.getORDERTIME()!=null) {
            JSONObjectHelper.put(json,"ordertime",getJSONValue(et.getORDERTIME()),false);
        }
        if(bIncEmpty||et.getORDERTYPE()!=null) {
            JSONObjectHelper.put(json,"ordertype",getJSONValue(et.getORDERTYPE()),false);
        }
        if(bIncEmpty||et.getORDERUID()!=null) {
            JSONObjectHelper.put(json,"orderuid",getJSONValue(et.getORDERUID()),false);
        }
        if(bIncEmpty||et.getUpdateDate()!=null) {
            JSONObjectHelper.put(json,"updatedate",getJSONValue(et.getUpdateDate()),false);
        }
        if(bIncEmpty||et.getUpdateMan()!=null) {
            JSONObjectHelper.put(json,"updateman",getJSONValue(et.getUpdateMan()),false);
        }
    }

    /* (non-Javadoc)
     * @see net.ibizsys.paas.data.DataObject#onFillXmlNode(net.ibizsys.paas.xml.XmlNode, boolean)
     */
    @Override
    protected void onFillXmlNode(XmlNode xmlNode,boolean bIncludeEmpty) throws Exception {
        fillXmlNode(this,xmlNode,bIncludeEmpty);
        super.onFillXmlNode(xmlNode, bIncludeEmpty);
    }

    /**
     * 填充当前对象到Xml节点中
     * @param et 当前数据对象
     * @param node Xml节点
     * @param bIncEmpty 是否包括空值
     * @throws Exception
     */
    private static void fillXmlNode(IBZ5ORDER et,XmlNode node,boolean bIncEmpty) throws Exception {
        if(bIncEmpty||et.getAMOUNT()!=null) {
            Object obj = et.getAMOUNT();
            node.setAttribute("AMOUNT",(obj==null)?"":StringHelper.format("%1$s",obj));
        }
        if(bIncEmpty||et.getCreateDate()!=null) {
            Object obj = et.getCreateDate();
            node.setAttribute("CREATEDATE",(obj==null)?"":StringHelper.format("%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS",obj));
        }
        if(bIncEmpty||et.getCreateMan()!=null) {
            Object obj = et.getCreateMan();
            node.setAttribute("CREATEMAN",(obj==null)?"":(String)obj);
        }
        if(bIncEmpty||et.getDETAILNUM()!=null) {
            Object obj = et.getDETAILNUM();
            node.setAttribute("DETAILNUM",(obj==null)?"":StringHelper.format("%1$s",obj));
        }
        if(bIncEmpty||et.getIBZ5CUSTOMERId()!=null) {
            Object obj = et.getIBZ5CUSTOMERId();
            node.setAttribute("IBZ5CUSTOMERID",(obj==null)?"":(String)obj);
        }
        if(bIncEmpty||et.getIBZ5CUSTOMERName()!=null) {
            Object obj = et.getIBZ5CUSTOMERName();
            node.setAttribute("IBZ5CUSTOMERNAME",(obj==null)?"":(String)obj);
        }
        if(bIncEmpty||et.getIBZ5ORDERId()!=null) {
            Object obj = et.getIBZ5ORDERId();
            node.setAttribute("IBZ5ORDERID",(obj==null)?"":(String)obj);
        }
        if(bIncEmpty||et.getIBZ5ORDERName()!=null) {
            Object obj = et.getIBZ5ORDERName();
            node.setAttribute("IBZ5ORDERNAME",(obj==null)?"":(String)obj);
        }
        if(bIncEmpty||et.getMEMO()!=null) {
            Object obj = et.getMEMO();
            node.setAttribute("MEMO",(obj==null)?"":(String)obj);
        }
        if(bIncEmpty||et.getOPINION()!=null) {
            Object obj = et.getOPINION();
            node.setAttribute("OPINION",(obj==null)?"":(String)obj);
        }
        if(bIncEmpty||et.getORDERSTATE()!=null) {
            Object obj = et.getORDERSTATE();
            node.setAttribute("ORDERSTATE",(obj==null)?"":(String)obj);
        }
        if(bIncEmpty||et.getORDERTIME()!=null) {
            Object obj = et.getORDERTIME();
            node.setAttribute("ORDERTIME",(obj==null)?"":StringHelper.format("%1$tY-%1$tm-%1$td",obj));
        }
        if(bIncEmpty||et.getORDERTYPE()!=null) {
            Object obj = et.getORDERTYPE();
            node.setAttribute("ORDERTYPE",(obj==null)?"":(String)obj);
        }
        if(bIncEmpty||et.getORDERUID()!=null) {
            Object obj = et.getORDERUID();
            node.setAttribute("ORDERUID",(obj==null)?"":(String)obj);
        }
        if(bIncEmpty||et.getUpdateDate()!=null) {
            Object obj = et.getUpdateDate();
            node.setAttribute("UPDATEDATE",(obj==null)?"":StringHelper.format("%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS",obj));
        }
        if(bIncEmpty||et.getUpdateMan()!=null) {
            Object obj = et.getUpdateMan();
            node.setAttribute("UPDATEMAN",(obj==null)?"":(String)obj);
        }


    }

    /* (non-Javadoc)
     * @see net.ibizsys.paas.entity.EntityBase#onCopyTo(net.ibizsys.paas.data.IDataObject, boolean)
     */
    @Override
    protected void onCopyTo(IDataObject dataEntity, boolean bIncludeEmtpy) throws Exception {
        IBZ5ORDER.copyTo(this,dataEntity,bIncludeEmtpy);
        super.onCopyTo(dataEntity,bIncludeEmtpy);
    }

    /**
     * 复制当前对象数据到目标对象
     * @param et 当前数据对象
     * @param dst 目标数据对象
     * @param bIncEmpty 是否包括空值
     * @throws Exception
     */
    private static void copyTo(IBZ5ORDER et,IDataObject dst,boolean bIncEmpty) throws Exception {
        if(et.isAMOUNTDirty() && (bIncEmpty||et.getAMOUNT()!=null)) {
            dst.set(FIELD_AMOUNT,et.getAMOUNT());
        }
        if(et.isCreateDateDirty() && (bIncEmpty||et.getCreateDate()!=null)) {
            dst.set(FIELD_CREATEDATE,et.getCreateDate());
        }
        if(et.isCreateManDirty() && (bIncEmpty||et.getCreateMan()!=null)) {
            dst.set(FIELD_CREATEMAN,et.getCreateMan());
        }
        if(et.isDETAILNUMDirty() && (bIncEmpty||et.getDETAILNUM()!=null)) {
            dst.set(FIELD_DETAILNUM,et.getDETAILNUM());
        }
        if(et.isIBZ5CUSTOMERIdDirty() && (bIncEmpty||et.getIBZ5CUSTOMERId()!=null)) {
            dst.set(FIELD_IBZ5CUSTOMERID,et.getIBZ5CUSTOMERId());
        }
        if(et.isIBZ5CUSTOMERNameDirty() && (bIncEmpty||et.getIBZ5CUSTOMERName()!=null)) {
            dst.set(FIELD_IBZ5CUSTOMERNAME,et.getIBZ5CUSTOMERName());
        }
        if(et.isIBZ5ORDERIdDirty() && (bIncEmpty||et.getIBZ5ORDERId()!=null)) {
            dst.set(FIELD_IBZ5ORDERID,et.getIBZ5ORDERId());
        }
        if(et.isIBZ5ORDERNameDirty() && (bIncEmpty||et.getIBZ5ORDERName()!=null)) {
            dst.set(FIELD_IBZ5ORDERNAME,et.getIBZ5ORDERName());
        }
        if(et.isMEMODirty() && (bIncEmpty||et.getMEMO()!=null)) {
            dst.set(FIELD_MEMO,et.getMEMO());
        }
        if(et.isOPINIONDirty() && (bIncEmpty||et.getOPINION()!=null)) {
            dst.set(FIELD_OPINION,et.getOPINION());
        }
        if(et.isORDERSTATEDirty() && (bIncEmpty||et.getORDERSTATE()!=null)) {
            dst.set(FIELD_ORDERSTATE,et.getORDERSTATE());
        }
        if(et.isORDERTIMEDirty() && (bIncEmpty||et.getORDERTIME()!=null)) {
            dst.set(FIELD_ORDERTIME,et.getORDERTIME());
        }
        if(et.isORDERTYPEDirty() && (bIncEmpty||et.getORDERTYPE()!=null)) {
            dst.set(FIELD_ORDERTYPE,et.getORDERTYPE());
        }
        if(et.isORDERUIDDirty() && (bIncEmpty||et.getORDERUID()!=null)) {
            dst.set(FIELD_ORDERUID,et.getORDERUID());
        }
        if(et.isUpdateDateDirty() && (bIncEmpty||et.getUpdateDate()!=null)) {
            dst.set(FIELD_UPDATEDATE,et.getUpdateDate());
        }
        if(et.isUpdateManDirty() && (bIncEmpty||et.getUpdateMan()!=null)) {
            dst.set(FIELD_UPDATEMAN,et.getUpdateMan());
        }
    }

    /* (non-Javadoc)
     * @see net.ibizsys.paas.data.DataObject#remove(java.lang.String)
     */
    @Override
    public boolean remove(String strParamName) throws Exception {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().remove(strParamName);
        }

        if(StringHelper.isNullOrEmpty(strParamName))
            throw new Exception("没有指定属性");
        Integer index=fieldIndexMap.get(strParamName.toUpperCase());
        if(index==null)
            return super.remove(strParamName);
        return  IBZ5ORDER.remove(this, index);
    }

    /**
     * 通过属性标识删除属性值
     * @param entity
     * @param index
     * @return
     * @throws Exception
     */
    private static boolean remove(IBZ5ORDER et,int index) throws Exception {
        switch(index) {
        case INDEX_AMOUNT:
            et.resetAMOUNT();
            return true;
        case INDEX_CREATEDATE:
            et.resetCreateDate();
            return true;
        case INDEX_CREATEMAN:
            et.resetCreateMan();
            return true;
        case INDEX_DETAILNUM:
            et.resetDETAILNUM();
            return true;
        case INDEX_IBZ5CUSTOMERID:
            et.resetIBZ5CUSTOMERId();
            return true;
        case INDEX_IBZ5CUSTOMERNAME:
            et.resetIBZ5CUSTOMERName();
            return true;
        case INDEX_IBZ5ORDERID:
            et.resetIBZ5ORDERId();
            return true;
        case INDEX_IBZ5ORDERNAME:
            et.resetIBZ5ORDERName();
            return true;
        case INDEX_MEMO:
            et.resetMEMO();
            return true;
        case INDEX_OPINION:
            et.resetOPINION();
            return true;
        case INDEX_ORDERSTATE:
            et.resetORDERSTATE();
            return true;
        case INDEX_ORDERTIME:
            et.resetORDERTIME();
            return true;
        case INDEX_ORDERTYPE:
            et.resetORDERTYPE();
            return true;
        case INDEX_ORDERUID:
            et.resetORDERUID();
            return true;
        case INDEX_UPDATEDATE:
            et.resetUpdateDate();
            return true;
        case INDEX_UPDATEMAN:
            et.resetUpdateMan();
            return true;
        default:
            throw new Exception("不明属性标识");
        }
    }


    private Object objIBZ5CUSTOMERLock = new Object();
    private com.sa.ibiz.demo.srv.demo.entity.IBZ5CUSTOMER ibz5customer = null;
    /**
    * 获取父数据 客户
     * @throws Exception
    */
    public com.sa.ibiz.demo.srv.demo.entity.IBZ5CUSTOMER getIBZ5CUSTOMER() throws Exception {
        if(this.getProxyEntity()!=null) {
            return this.getProxyEntity().getIBZ5CUSTOMER();
        }

        if(this.getIBZ5CUSTOMERId()==null)
            return null;
        synchronized(objIBZ5CUSTOMERLock) {
            if(ibz5customer==null) {
                ibz5customer = new com.sa.ibiz.demo.srv.demo.entity.IBZ5CUSTOMER();
                ibz5customer.setIBZ5CUSTOMERId(this.getIBZ5CUSTOMERId());
                com.sa.ibiz.demo.srv.demo.service.IBZ5CUSTOMERService service = (com.sa.ibiz.demo.srv.demo.service.IBZ5CUSTOMERService)ServiceGlobal.getService(com.sa.ibiz.demo.srv.demo.service.IBZ5CUSTOMERService.class,this.getSessionFactory());
                if(this.getIBZ5CUSTOMERId().indexOf(net.ibizsys.paas.service.ServiceBase.TEMPKEY) == 0)
                    service.getTemp(ibz5customer);
                else
                    service.get(ibz5customer);
            }
            return ibz5customer;
        }
    }





    /**
     *  获取代理的数据对象
     */
    private IBZ5ORDER getProxyEntity() {
        return this.proxyIBZ5ORDER;
    }

    /* (non-Javadoc)
     * @see net.ibizsys.paas.data.DataObject#onProxy(net.ibizsys.paas.data.IDataObject)
     */
    @Override
    protected void onProxy(IDataObject proxyDataObject) {
        this.proxyIBZ5ORDER = null;
        if(proxyDataObject!=null && proxyDataObject instanceof IBZ5ORDER) {
            this.proxyIBZ5ORDER = (IBZ5ORDER)proxyDataObject;
        }

    }

}